
<h1><span class="yiyi-st" id="yiyi-13">numpy.matrix.real</span></h1>
        <blockquote>
        <p>原文：<a href="https://docs.scipy.org/doc/numpy/reference/generated/numpy.matrix.real.html">https://docs.scipy.org/doc/numpy/reference/generated/numpy.matrix.real.html</a></p>
        <p>译者：<a href="https://github.com/wizardforcel">飞龙</a> <a href="http://usyiyi.cn/">UsyiyiCN</a></p>
        <p>校对：（虚位以待）</p>
        </blockquote>
    
<dl class="attribute">
<dt id="numpy.matrix.real"><span class="yiyi-st" id="yiyi-14"> <code class="descclassname">matrix.</code><code class="descname">real</code></span></dt>
<dd><p><span class="yiyi-st" id="yiyi-15">数组的真实部分。</span></p>
<div class="admonition seealso">
<p class="first admonition-title"><span class="yiyi-st" id="yiyi-16">也可以看看</span></p>
<dl class="last docutils">
<dt><span class="yiyi-st" id="yiyi-17"><a class="reference internal" href="numpy.real.html#numpy.real" title="numpy.real"><code class="xref py py-obj docutils literal"><span class="pre">numpy.real</span></code></a></span></dt>
<dd><span class="yiyi-st" id="yiyi-18">等效函数</span></dd>
</dl>
</div>
<p class="rubric"><span class="yiyi-st" id="yiyi-19">例子</span></p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">x</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">sqrt</span><span class="p">([</span><span class="mi">1</span><span class="o">+</span><span class="mi">0</span><span class="n">j</span><span class="p">,</span> <span class="mi">0</span><span class="o">+</span><span class="mi">1</span><span class="n">j</span><span class="p">])</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">x</span><span class="o">.</span><span class="n">real</span>
<span class="go">array([ 1.        ,  0.70710678])</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">x</span><span class="o">.</span><span class="n">real</span><span class="o">.</span><span class="n">dtype</span>
<span class="go">dtype(&apos;float64&apos;)</span>
</pre></div>
</div>
</dd></dl>
